﻿using UnityEngine.UI;

namespace UIFrame
{
    /// <summary>
    /// 按钮组件
    /// </summary>
    public class ButtonItem : CommonItem
    {
        //绑定按钮事件方便电脑鼠标点击调用
        protected Button button;
        protected virtual void Start()
        {
            button = GetComponent<Button>();
            button.onClick.AddListener(myAction);          
        }
    }
}